package com.dbl.oms.common.enums;

import lombok.Getter;

/**
 * 超时枚举
 */
@Getter
public enum TimeOutEnum {

    //1分钟
    ONE_MINUTE(60, 60 * 1000),
    //3分钟
    TREE_MINUTE(60 * 3, 3 * 60 * 1000),
    //5分钟
    FIVE_MINUTE(60 * 5, 5 * 60 * 1000),
    //10分钟
    TEN_MINUTE(60 * 10, 10 * 60 * 1000),

    //15分钟
    FIFTEEN_MINUTE(60 * 15, 15 * 60 * 1000),
    //30分钟
    THIRTY_MINUTE(60 * 30, 30 * 60 * 1000),
    //2小时
    TWO_HOURS(60 * 120, 120 * 60 * 1000);
    //秒
    int second;
    //毫秒
    int millisecond;

    TimeOutEnum(int second, int millisecond) {
        this.second = second;
        this.millisecond = millisecond;
    }

    public int getSecond() {
        return second;
    }

    public void setSecond(int second) {
        this.second = second;
    }

    public int getMillisecond() {
        return millisecond;
    }

    public void setMillisecond(int millisecond) {
        this.millisecond = millisecond;
    }
}
